import request from '@/utils/request'

// 查询供应商报价列表
export function listGysbj(query) {
  return request({
    url: '/caigou/gysbj/list',
    method: 'get',
    params: query
  })
}

// 查询供应商报价详细
export function getGysbj(id) {
  return request({
    url: '/caigou/gysbj/' + id,
    method: 'get'
  })
}
export function getGysbjPlus(id) {
  return request({
    url: '/caigou/gysbj/info/' + id,
    method: 'get'
  })
}

// 新增供应商报价
export function addGysbj(data) {
  return request({
    url: '/caigou/gysbj',
    method: 'post',
    data: data
  })
}
// 新增供应商报价 加强版
export function addGysbjPlus(data) {
  return request({
    url: '/caigou/gysbj/add',
    method: 'post',
    data: data
  })
}

// 修改供应商报价
export function updateGysbj(data) {
  return request({
    url: '/caigou/gysbj',
    method: 'put',
    data: data
  })
}
export function updateGysbjPlus(data) {
  return request({
    url: '/caigou/gysbj/upd',
    method: 'put',
    data: data
  })
}

// 删除供应商报价
export function delGysbj(id) {
  return request({
    url: '/caigou/gysbj/' + id,
    method: 'delete'
  })
}

export function delGysbjPlus(id) {
  return request({
    url: '/caigou/gysbj/del/' + id,
    method: 'delete'
  })
}
